package com.moerlong.platform.service.demo.remote;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.moerlong.platform.service.common.utils.R;

//通过服务名称调用  名称不能中文
@FeignClient(name= "MOERLONG-CLOUD-PRODUCER-JAVA",fallback = HelloRemoteHystrix.class)

public interface HelloRemote {

    @RequestMapping(value = "/getConfig")
    public R getConfig();

    @RequestMapping(value = "/demo2")
    public R demo2(@RequestParam(value = "name") String name);
    
    @RequestMapping(value = "/demo3")
    public R demo3(@RequestParam(value = "name") String name);
    @RequestMapping(value = "/getServices")
    public R getServices();
}
